import { string } from 'prop-types'
import React from 'react'

import {HomeHealthInfoWrapper} from './styledHome'

export default function HomeHealthInfo({
    title,
    text
}) {
    return (
        <HomeHealthInfoWrapper>
            <span className='title'>
                { title }
            </span>
            <span className='text'>
                { text }
            </span>
        </HomeHealthInfoWrapper>
    )
}

HomeHealthInfo.propTypes = {
    title: string,
    text: string,

}
